<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../include/laypublic.jsp" %>
<%@ include file="../include/vueComponent.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>预算管理详情</title>
</head>

<link rel="stylesheet" href="${ctx}/resources/vue-element-lib/detail.css">
<style>
    .unit_img div {
        height: 41px;
    }
</style>
<body>
<div id="app">
    <div class="layui-tab layui-tab-brief" lay-filter="xqxx-tab-all">
        <ul class="layui-tab-title">
            <li id="tbglId" class="layui-this" lay-id="0">预算管理详情</li>
<%--            <li id="zgysId" lay-id="1">历史审批信息</li>--%>
        </ul>

        <div class="layui-tab-right">
            <c:if test="${isAuditFlag eq '1'}">
                <template v-if="layId==0">
                    <button type="button" class="layui-btn layui-btn-primary layui-btn-radius" @click="save(0)">保存
                    </button>
                    <button type="button" class="layui-btn layui-btn-radius" @click="save(1)">提交</button>
                </template>
            </c:if>
            <c:if test="${auditTabFlag eq '1'}">
                <button type="button" class="layui-btn layui-btn-primary layui-btn-radius" @click="audit(0)">
                    不同意
                </button>
                <button type="button" class="layui-btn layui-btn-radius" @click="audit(1)">同意</button>
            </c:if>
        </div>
        <div class="layui-tab-content" style="height: 100px;">
            <div class="layui-tab-item layui-show">
                <div class="container">
                    <el-form ref="formRef" label-width="180px" label-suffix="："
                             label-position="left">
                        <div class="title">
                            <h3>项目基础信息</h3>
                        </div>
                        <el-row>
                            <x-col>
                                <el-form-item label="项目名称">
                                    <el-select v-model="proCode" filterable placeholder="请选择项目名称"
                                               style="width: 100%" @change="queryDetailByWhere" v-if="!id">
                                        <el-option v-for="item in proInfoList" :key="item.proCode" :label="item.proName"
                                                   :value="item.proCode">
                                        </el-option>
                                    </el-select>
                                    <span v-else>{{info.proName}}</span>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <template v-for="(item,index) in infoList">
                            <el-row>
                                <template v-for="(item1,index1) in item">
                                    <x-col :position="(index1+1) % 2==0?'right':'left'">
                                        <el-form-item :label="item1.name">
                                            <span>{{item1.amount}}</span>
                                        </el-form-item>
                                    </x-col>
                                </template>
                            </el-row>
                        </template>


                        <el-row>
                            <x-col>
                                <el-form-item label="实际开工日期">
                                    <el-date-picker style="width: 100%" v-model="info.actStartDate"
                                                    type="date" placeholder="选择实际开工日期"
                                                    value-format="yyyy-MM-dd"></el-date-picker>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="已开工月数">
                                    <x-input type="number" v-model="info.monthsStarted" name="已开工月数"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="预计竣工日期">
                                    <el-date-picker style="width: 100%" v-model="info.expFinishDate"
                                                    type="date" placeholder="选择预计竣工日期"
                                                    value-format="yyyy-MM-dd"></el-date-picker>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="实际贷款利率">
                                    <x-input type="number" v-model="info.actLoanRate" name="实际贷款利率"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="内部拆借利率">
                                    <x-input type="number" v-model="info.innerLendRate" name="内部拆借利率"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="当年期末净现金流">
                                    <x-input type="number" v-model="info.yearTermCash"
                                             name="当年期末净现金流"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="当年12月应付工程款">
                                    <x-input type="number" v-model="info.payProFunds"
                                             name="当年12月应付工程款"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="回购总额">
                                    <x-input type="number" v-model="info.buyBackTotal" name="回购总额"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="回购期限(年)">
                                    <x-input type="number" v-model="info.buyBackTerm"
                                             name="回购期限(年)"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="回购年金">
                                    <x-input type="number" v-model="info.buyBackYearAmt" name="回购年金"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="其中：本金">
                                    <x-input type="number" v-model="info.capitalAmt" name="其中：本金"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="利息">
                                    <x-input type="number" v-model="info.inteAmt" name="利息"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="年金收取日期">
                                    <el-date-picker style="width: 100%" v-model="info.yearAmtDate"
                                                    type="date" placeholder="选择年金收取日期"
                                                    value-format="yyyy-MM-dd"></el-date-picker>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="运维期付息方式">
                                    <x-select :options="payInteMethodList" v-model="info.payInteMethod"
                                              name="运维期付息方式"></x-select>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="项目总投">
                                    <x-input type="number" v-model="info.proTotalAmt" name="项目总投"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="合同建设期（月）">
                                    <x-input type="number" v-model="info.conBuildMonth"
                                             name="合同建设期（月）"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="合同竣工日期">
                                    <el-date-picker style="width: 100%" v-model="info.conFinishDate"
                                                    type="date" placeholder="选择合同竣工日期"
                                                    value-format="yyyy-MM-dd"></el-date-picker>

                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="运营期（月）">
                                    <x-input type="number" v-model="info.operateMonth" name="运营期（月）"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="中标建安下浮率">
                                    <x-input type="number" v-model="info.bidJaLowerRate"
                                             name="中标建安下浮率"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="内部建安下浮率">
                                    <x-input type="number" v-model="info.inJaLowerRate"
                                             name="内部建安下浮率"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="合同建设期利率">
                                    <x-input type="number" v-model="info.conBuildRate"
                                             name="合同建设期利率"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="回购期折现（回报）率">
                                    <x-input type="number" v-model="info.buybackDiscRate"
                                             name="回购期折现（回报）率"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="月度付款比例">
                                    <x-input type="number" v-model="info.monthPayRatio" name="月度付款比例"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="年度付款比例">
                                    <x-input type="number" v-model="info.yearPayRatio" name="年度付款比例"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <el-row>
                            <x-col>
                                <el-form-item label="竣工验收付款比例">
                                    <x-input type="number" v-model="info.finishCheckPayRatio"
                                             name="竣工验收付款比例"></x-input>
                                </el-form-item>
                            </x-col>
                            <x-col position="right">
                                <el-form-item label="竣工结算付款比例">
                                    <x-input type="number" v-model="info.finishSettPayRatio"
                                             name="竣工结算付款比例"></x-input>
                                </el-form-item>
                            </x-col>
                        </el-row>
                        <div class="title">
                            <h3>年度预算详情</h3>
                        </div>
                        <div class="unit">
                            <div class="unit_center" style=" height:calc(100vh - 100px);">
                                <el-table :data="detailList" border height="100%">
                                    <el-table-column label="预算指标" align="center" width="150" fixed>
                                        <template slot-scope="scope">
                                            <span>{{scope.row.typeNo}}{{scope.row.typeName}}</span>
                                        </template>
                                    </el-table-column>

                                    <el-table-column label="11月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.lastNov" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.lastNov" type="number" v-else
                                                     @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="12月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.lastDec" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.lastDec" type="number" v-else
                                                     @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="开累" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.tiredAmt" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.tiredAmt" type="number" v-else
                                                     @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column prop="yearTotal" label="全年预算" align="center"
                                                     width="150"></el-table-column>
                                    <el-table-column label="1月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.jan" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.jan" type="number" v-else
                                                     @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="2月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.feb" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>

                                            <x-input v-model="scope.row.feb" type="number" v-else
                                                     @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="3月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.mar" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>

                                            <x-input v-model="scope.row.mar" type="number" v-else
                                                     @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="4月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.apr" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.apr" type="number"
                                                     v-else @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="5月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.may" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.may" type="number"
                                                     v-else @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="6月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.jun" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.jun" type="number"
                                                     v-else @input="sum"></x-input>
                                        </template>
                                    </el-table-column>
                                    <el-table-column label="7月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.jul" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.jul" type="number"
                                                     v-else @input="sum"></x-input>

                                        </template>
                                    </el-table-column>
                                    <el-table-column label="8月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.aug" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.aug" type="number" v-else
                                                     @input="sum"></x-input>

                                        </template>
                                    </el-table-column>
                                    <el-table-column label="9月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.sep" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.sep" type="number" v-else
                                                     @input="sum"></x-input>

                                        </template>
                                    </el-table-column>
                                    <el-table-column label="10月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.oct" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.oct" type="number" v-else
                                                     @input="sum"></x-input>

                                        </template>
                                    </el-table-column>
                                    <el-table-column label="11月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.nov" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.nov" type="number" v-else
                                                     @input="sum"></x-input>

                                        </template>
                                    </el-table-column>
                                    <el-table-column label="12月" align="center" width="150">
                                        <template slot-scope="scope">
                                            <el-input v-model="scope.row.dec" disabled
                                                      v-if="scope.row.parentTypeId==0||scope.row.typeId == 42||scope.row.typeId == 43||scope.row.typeId == 45||scope.row.typeId == 46||scope.row.typeId == 50||scope.row.typeId == 51||scope.row.typeId == 52||scope.row.typeId == 58||scope.row.typeId == 60||scope.row.typeId == 61||scope.row.typeId == 62||scope.row.typeId == 63||scope.row.typeId == 64||scope.row.typeId == 65||scope.row.typeId == 66||scope.row.typeId == 67||scope.row.typeId == 68||scope.row.typeId == 69||scope.row.typeId == 70||scope.row.typeId == 71||scope.row.typeId == 72||scope.row.typeId == 73||scope.row.typeId == 74||scope.row.typeId == 75"></el-input>
                                            <x-input v-model="scope.row.dec" type="number" v-else
                                                     @input="sum"></x-input>

                                        </template>
                                    </el-table-column>
                                </el-table>
                            </div>
                        </div>
<%--                        <c:if test="${auditTabFlag eq '1'}">--%>
<%--                            <div class="title">--%>
<%--                                <h3>审批信息</h3>--%>
<%--                            </div>--%>
<%--                            <%@ include file="process/process-audit.jsp" %>--%>
<%--                        </c:if>--%>
                    </el-form>
                </div>
            </div>
<%--            <div class="layui-tab-item">--%>
<%--                <%@ include file="process/process-history.jsp" %>--%>
<%--            </div>--%>
        </div>
    </div>
</div>
<script src="${ctx}/resources/vue-element-lib/jquery.js"></script>
<script>
    let fileArr = [];
    var staticPath = '${fileHttpPre}';
    layui.config({
        base: '${ctx}/resources/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'set', 'upload', 'table', 'transfer', 'laydate', 'element', 'layer'], function () {
        var $ = layui.$
            , upload = layui.upload
            , table = layui.table
            , element = layui.element
            , layer = layui.layer;

        //选项卡切换监听
        element.on('tab(xqxx-tab-all)', function (data) {
            var layId = $(this).attr('lay-id');
            vm.$data.layId = layId
            if (layId === "0") {
            } else if (layId === "1") {
                loadTable(layId);
            } else if (layId === "2") {

            }
        });

        function loadTable(layId) {
            // 表单
            table.render({
                elem: '#lay-lsspxx-create-manage'
                , url: basePath + '/fiaHistoryProcess/list?proCode=${proCode}'
                , cols: [[
                    {
                        field: 'startTime', title: '发起时间', width: 145, width: 155, templet: function (d) {
                            return layui.util.toDateString(d.startTime, "yyyy-MM-dd HH:mm:ss");
                        }
                    }
                    , {field: 'startRealName', title: '发起人', width: 145}
                    , {field: 'proFlowType', title: '审批阶段', width: 145}
                    , {
                        field: 'dealTime', title: '审批日期', width: 155, templet: function (d) {
                            return layui.util.toDateString(d.dealTime, "yyyy-MM-dd HH:mm:ss");
                        }
                    }
                    , {field: 'dealName', title: '审批人', width: 160}
                    , {
                        field: 'state', title: '审批状态'
                    }
                    , {
                        title: '操作', width: 140, align: 'center', fixed: 'right', templet: function (d) {
                            var optStr = "";
                            optStr += '<a class="layui-btn layui-btn-xs" lay-event="view"><i class="layui-icon layui-icon-form"></i>查看</a>';
                            return optStr;
                        }
                    }
                ]]
                , page: true
                , limit: 10
            });

            // 监听操作列
            table.on('tool(lay-lsspxx-create-manage)', function (obj) {
                var data = obj.data;
                if (obj.event === 'view') {//查看
                    parent.layui.index.openTabsPage(basePath + '/fiaHistoryProcess/toDetail?processId=' + data.processId, '历史流程信息 > 详情');
                }
            });
        }

        ;(function () {
            //定义构造函数
            var Upfile = function (ele, type, opt) {
                this.defaults = {
                    //elem:‘#uploadPic‘	//绑定元素
                    elem: $(ele)	//绑定元素
                    , url: basePath + '/contractInfo/uploadAtt/',
                    data: {
                        types: type
                    },
                    multiple: true,
                    accept: 'file',
                    acceptMime: 'application/zip,application/x-rar-compressed,image/jpeg,image/png,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/pdf',

                    method: 'post',
                    before: function (obj) { //obj参数包含的信息
                        layer.load(); //上传loading
                    },
                    done: function (res) {
                        //如果上传失败
                        if (res.code > 0) {
                            layer.closeAll('loading'); //关闭loading
                            return layer.msg(res.msg, {icon: 7});
                        }
                        //上传完毕
                        if (res.entity != null && res.entity.length > 0) {
                            fileArr.push(res.entity[0])
                            for (var i in res.entity) {
                                var contractInfo = res.entity[i];
                                var arr = contractInfo.split("|");
                                var imgSrc = "";
                                var suffix = arr[1].substring(arr[1].lastIndexOf(".") + 1, arr[1].length);
                                if (suffix == 'jpg' || suffix == 'png') {
                                    imgSrc = "${fileHttpPre}/" + arr[3];
                                } else {
                                    imgSrc = "${ctx}/resources/images/" + suffix + ".jpg";
                                }
                                $('#' + type + '-upload-more-list')
                                    .append('<div class="layui-upload-img-div" id="upload_img_' + arr[2] + '"><img src="' + imgSrc + '" title="'
                                        + arr[1] + '" class="layui-upload-img"><div class="mask"><a href="javascript:void(0)" onclick="showImg(\'' + "${fileHttpPre}"
                                        + arr[3] + '\');">查看</a><a href="javascript:void(0)" onclick="del(\''
                                        + arr[2] + '\')";>删除</a></div><p>' + arr[1] + '</p><input type="hidden" value="'
                                        + contractInfo + '" id="fileAtt_' + arr[2] + '" name="fileAtts" ></input></div> ');
                            }
                        }
                    },
                    allDone: function (obj) { //当文件全部被提交后，才触发
                        layer.closeAll('loading'); //关闭loading
                    },
                    error: function () {
                        layer.closeAll('loading'); //关闭loading
                        //上传失败
                        layer.msg("上传失败，请稍后再试~", {icon: 7});
                    }
                }
                this.options = $.extend({}, this.defaults, opt);
            };

            //定义方法
            Upfile.prototype = {
                init: function () {
                    var _this = this;
                    return layui.use('upload', function () {
                        var upload = layui.upload;

                        //执行实例
                        var uploadInst = upload.render(_this.options);
                    });
                }
            };

            //在插件中使用对象
            $.fn.upfile = function (options) {
                var upfile = new Upfile(this, options);
                return upfile.init();
            }
        })();
        //上传文件
        $('#14-upload-more').upfile(14);
    });

    //删除文件
    function del(index) {
        layui.$("#fileAtt_" + index).remove();
        layui.$("#upload_img_" + index).remove();
    }

    //根据url查看文件
    function showImg(url) {
        var openWin = window.open(url, '', 'left=410,height=768, width=1024, top=200,  toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
    }

    /*核心*/
    var vm = new Vue({
        el: '#app',
        data() {
            return {
                layId: '0',
                id: '',
                procNodeList: [],
                tempNodeList: [],
                proCode: '',
                payInteMethodList: [
                    {code: 1, name: '月度付息'},
                    {code: 2, name: '季度付息'},
                ],
                proInfoList: [],
                detailList: [],
                infoList: [],
                auditMsg: '',//审批意见
                info: {},
            }
        },
        created() {
            this.id = "${id}";

            this.processId = "${processId}";
            this.queryDetail();
            this.queryProcessList();

        },
        mounted() {

        },
        methods: {
            queryDetail() {
                zAjax('/budget/queryDetail', {id: this.id}).then(res => {
                    if (res.code == 0) {
                        this.proInfoList = res.entity.proInfoList;
                        if (res.entity.info) this.info = res.entity.info
                        if (res.entity.detailList && res.entity.detailList.length > 0) this.detailList = res.entity.detailList;
                    }
                })
            },
            getObj(id) {
                let obj = {}
                this.detailList.map(el => {
                    if (el.typeId == id) {
                        obj = el
                    }
                })
                return obj;
            },
            cList(name, num, id) {
                this.detailList.map(el => {
                    if (el.typeId == id) {
                        el[name] = num;
                        el[name] = el[name].toFixed(3);
                    }
                });
            },
            sum() {
                //4、债权融资计划 = 银行贷款 + 其他债权融资 - 支付利息 - 偿还本金
                this.cList('tiredAmt', +this.getObj(28).tiredAmt + +this.getObj(29).tiredAmt - +this.getObj(30).tiredAmt - +this.getObj(31).tiredAmt, 4);
                this.cList('lastNov', +this.getObj(28).lastNov + +this.getObj(29).lastNov - +this.getObj(30).lastNov - +this.getObj(31).lastNov, 4);
                this.cList('lastDec', +this.getObj(28).lastDec + +this.getObj(29).lastDec - +this.getObj(30).lastDec - +this.getObj(31).lastDec, 4);
                this.cList('jan', +this.getObj(28).jan + +this.getObj(29).jan - +this.getObj(30).jan - +this.getObj(31).jan, 4);
                this.cList('feb', +this.getObj(28).feb + +this.getObj(29).feb - +this.getObj(30).feb - +this.getObj(31).feb, 4);
                this.cList('mar', +this.getObj(28).mar + +this.getObj(29).mar - +this.getObj(30).mar - +this.getObj(31).mar, 4);
                this.cList('apr', +this.getObj(28).apr + +this.getObj(29).apr - +this.getObj(30).apr - +this.getObj(31).apr, 4);
                this.cList('may', +this.getObj(28).may + +this.getObj(29).may - +this.getObj(30).may - +this.getObj(31).may, 4);
                this.cList('jun', +this.getObj(28).jun + +this.getObj(29).jun - +this.getObj(30).jun - +this.getObj(31).jun, 4);
                this.cList('jul', +this.getObj(28).jul + +this.getObj(29).jul - +this.getObj(30).jul - +this.getObj(31).jul, 4);
                this.cList('aug', +this.getObj(28).aug + +this.getObj(29).aug - +this.getObj(30).aug - +this.getObj(31).aug, 4);
                this.cList('sep', +this.getObj(28).sep + +this.getObj(29).sep - +this.getObj(30).sep - +this.getObj(31).sep, 4);
                this.cList('oct', +this.getObj(28).oct + +this.getObj(29).oct - +this.getObj(30).oct - +this.getObj(31).oct, 4);
                this.cList('nov', +this.getObj(28).nov + +this.getObj(29).nov - +this.getObj(30).nov - +this.getObj(31).nov, 4);
                this.cList('dec', +this.getObj(28).dec + +this.getObj(29).dec - +this.getObj(30).dec - +this.getObj(31).dec, 4);

                //5、股权及政府方融资计划 = 政府方资本金注入 + 项目专项基金 + 政府补贴 + 股权投资基金 + 政府股东借款 - 归还政府股东借款本息
                this.cList('tiredAmt', +this.getObj(32).tiredAmt + +this.getObj(33).tiredAmt + +this.getObj(34).tiredAmt + +this.getObj(35).tiredAmt + +this.getObj(36).tiredAmt - +this.getObj(37).tiredAmt, 5);
                this.cList('lastNov', +this.getObj(32).lastNov + +this.getObj(33).lastNov + +this.getObj(34).lastNov + +this.getObj(35).lastNov + +this.getObj(36).lastNov - +this.getObj(37).lastNov, 5);
                this.cList('lastDec', +this.getObj(32).lastDec + +this.getObj(33).lastDec + +this.getObj(34).lastDec + +this.getObj(35).lastDec + +this.getObj(36).lastDec - +this.getObj(37).lastDec, 5);
                this.cList('jan', +this.getObj(32).jan + +this.getObj(33).jan + +this.getObj(34).jan + +this.getObj(35).jan + +this.getObj(36).jan - +this.getObj(37).jan, 5);
                this.cList('feb', +this.getObj(32).feb + +this.getObj(33).feb + +this.getObj(34).feb + +this.getObj(35).feb + +this.getObj(36).feb - +this.getObj(37).feb, 5);
                this.cList('mar', +this.getObj(32).mar + +this.getObj(33).mar + +this.getObj(34).mar + +this.getObj(35).mar + +this.getObj(36).mar - +this.getObj(37).mar, 5);
                this.cList('apr', +this.getObj(32).apr + +this.getObj(33).apr + +this.getObj(34).apr + +this.getObj(35).apr + +this.getObj(36).apr - +this.getObj(37).apr, 5);
                this.cList('may', +this.getObj(32).may + +this.getObj(33).may + +this.getObj(34).may + +this.getObj(35).may + +this.getObj(36).may - +this.getObj(37).may, 5);
                this.cList('jun', +this.getObj(32).jun + +this.getObj(33).jun + +this.getObj(34).jun + +this.getObj(35).jun + +this.getObj(36).jun - +this.getObj(37).jun, 5);
                this.cList('jul', +this.getObj(32).jul + +this.getObj(33).jul + +this.getObj(34).jul + +this.getObj(35).jul + +this.getObj(36).jul - +this.getObj(37).jul, 5);
                this.cList('aug', +this.getObj(32).aug + +this.getObj(33).aug + +this.getObj(34).aug + +this.getObj(35).aug + +this.getObj(36).aug - +this.getObj(37).aug, 5);
                this.cList('sep', +this.getObj(32).sep + +this.getObj(33).sep + +this.getObj(34).sep + +this.getObj(35).sep + +this.getObj(36).sep - +this.getObj(37).sep, 5);
                this.cList('oct', +this.getObj(32).oct + +this.getObj(33).oct + +this.getObj(34).oct + +this.getObj(35).oct + +this.getObj(36).oct - +this.getObj(37).oct, 5);
                this.cList('nov', +this.getObj(32).nov + +this.getObj(33).nov + +this.getObj(34).nov + +this.getObj(35).nov + +this.getObj(36).nov - +this.getObj(37).nov, 5);
                this.cList('dec', +this.getObj(32).dec + +this.getObj(33).dec + +this.getObj(34).dec + +this.getObj(35).dec + +this.getObj(36).dec - +this.getObj(37).dec, 5);

                //6、项目运维利润 = 项目运维收入 - 项目运维费用
                this.cList('tiredAmt', +this.getObj(39).tiredAmt - +this.getObj(38).tiredAmt, 6);
                this.cList('lastNov', +this.getObj(39).lastNov - +this.getObj(38).lastNov, 6);
                this.cList('lastDec', +this.getObj(39).lastDec - +this.getObj(38).lastDec, 6);
                this.cList('jan', +this.getObj(39).jan - +this.getObj(38).jan, 6);
                this.cList('feb', +this.getObj(39).feb - +this.getObj(38).feb, 6);
                this.cList('mar', +this.getObj(39).mar - +this.getObj(38).mar, 6);
                this.cList('apr', +this.getObj(39).apr - +this.getObj(38).apr, 6);
                this.cList('may', +this.getObj(39).may - +this.getObj(38).may, 6);
                this.cList('jun', +this.getObj(39).jun - +this.getObj(38).jun, 6);
                this.cList('jul', +this.getObj(39).jul - +this.getObj(38).jul, 6);
                this.cList('aug', +this.getObj(39).aug - +this.getObj(38).aug, 6);
                this.cList('sep', +this.getObj(39).sep - +this.getObj(38).sep, 6);
                this.cList('oct', +this.getObj(39).oct - +this.getObj(38).oct, 6);
                this.cList('nov', +this.getObj(39).nov - +this.getObj(38).nov, 6);
                this.cList('dec', +this.getObj(39).dec - +this.getObj(38).dec, 6);

                //8.1建设期合同约定资本化利息 = 支付利息 - 建设期不可资本化利息
                this.cList('lastNov', +this.getObj(30).lastNov - +this.getObj(44).lastNov, 42);
                this.cList('lastDec', +this.getObj(30).lastDec - +this.getObj(44).lastDec, 42);
                this.cList('jan', +this.getObj(30).jan - +this.getObj(44).jan, 42);
                this.cList('feb', +this.getObj(30).feb - +this.getObj(44).feb, 42);
                this.cList('mar', +this.getObj(30).mar - +this.getObj(44).mar, 42);
                this.cList('apr', +this.getObj(30).apr - +this.getObj(44).apr, 42);
                this.cList('may', +this.getObj(30).may - +this.getObj(44).may, 42);
                this.cList('jun', +this.getObj(30).jun - +this.getObj(44).jun, 42);
                this.cList('jul', +this.getObj(30).jul - +this.getObj(44).jul, 42);
                this.cList('aug', +this.getObj(30).aug - +this.getObj(44).aug, 42);
                this.cList('sep', +this.getObj(30).sep - +this.getObj(44).sep, 42);
                this.cList('oct', +this.getObj(30).oct - +this.getObj(44).oct, 42);
                this.cList('nov', +this.getObj(30).nov - +this.getObj(44).nov, 42);
                this.cList('dec', +this.getObj(30).dec - +this.getObj(44).dec, 42);

                //8.2建设期不可资本化利息 = 支付利息 / 实际贷款利率 * (实际贷款利率 - 合同建设期利率)
                this.cList('lastNov', +this.getObj(30).lastNov / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('lastDec', +this.getObj(30).lastDec / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('jan', +this.getObj(30).jan / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('feb', +this.getObj(30).feb / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('mar', +this.getObj(30).mar / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('apr', +this.getObj(30).apr / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('may', +this.getObj(30).may / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('jun', +this.getObj(30).jun / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('jul', +this.getObj(30).jul / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('aug', +this.getObj(30).aug / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('sep', +this.getObj(30).sep / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('oct', +this.getObj(30).oct / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('nov', +this.getObj(30).nov / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                this.cList('dec', +this.getObj(30).dec / +this.info.actLoanRate || 0 * (+this.info.actLoanRate || 0 - +this.info.conBuildRate || 0), 43);
                // 9.1建设期息差收益 = 建设期不可资本化利息
                this.cList('lastNov', +this.getObj(43).lastNov, 45);
                this.cList('lastDec', +this.getObj(43).lastDec, 45);
                this.cList('jan', +this.getObj(43).jan, 45);
                this.cList('feb', +this.getObj(43).feb, 45);
                this.cList('mar', +this.getObj(43).mar, 45);
                this.cList('apr', +this.getObj(43).apr, 45);
                this.cList('may', +this.getObj(43).may, 45);
                this.cList('jun', +this.getObj(43).jun, 45);
                this.cList('jul', +this.getObj(43).jul, 45);
                this.cList('aug', +this.getObj(43).aug, 45);
                this.cList('sep', +this.getObj(43).sep, 45);
                this.cList('oct', +this.getObj(43).oct, 45);
                this.cList('nov', +this.getObj(43).nov, 45);
                this.cList('dec', +this.getObj(43).dec, 45);

                //9.2运维期息差收益 = 回购年金本金收回 * (回购期折现（回报）率 - 实际贷款利率)
                //月度付息 = 回购年金利息收入 / 12 - 支付利息
                //季度付息 = 回购年金利息收入 / 4 - 支付利息
                this.cList('lastNov', +this.getObj(40).lastNov * (+this.info.buybackDiscRate || 0 - +this.info.actLoanRate || 0), 46);
                this.cList('lastDec', +this.getObj(40).lastDec * (+this.info.buybackDiscRate || 0 - +this.info.actLoanRate || 0), 46);
                this.cList('jan', +this.getObj(40).yearTotal / (12 - +this.getObj(30).jan), 46);
                this.cList('feb', +this.getObj(40).yearTotal / (12 - +this.getObj(30).feb), 46);
                this.cList('mar', +this.getObj(40).yearTotal / (4 - +this.getObj(30).mar), 46);
                this.cList('apr', +this.getObj(40).yearTotal / (12 - +this.getObj(30).apr), 46);
                this.cList('may', +this.getObj(40).yearTotal / (12 - +this.getObj(30).may), 46);
                this.cList('jun', +this.getObj(40).yearTotal / (4 - +this.getObj(30).jun), 46);
                this.cList('jul', +this.getObj(40).yearTotal / (12 - +this.getObj(30).jul), 46);
                this.cList('aug', +this.getObj(40).yearTotal / (12 - +this.getObj(30).aug), 46);
                this.cList('sep', +this.getObj(40).yearTotal / (4 - +this.getObj(30).sep), 46);
                this.cList('oct', +this.getObj(40).yearTotal / (12 - +this.getObj(30).oct), 46);
                this.cList('nov', +this.getObj(40).yearTotal / (12 - +this.getObj(30).nov), 46);
                this.cList('dec', +this.getObj(40).yearTotal / (4 - +this.getObj(30).dec), 46);


                //10.2 二三次经营利润 = 建设期二三次经营利润（创效）+ 针对运维期银行利率倒挂及自有资金利息亏损的经营利润
                this.cList('tiredAmt', +this.getObj(76).tiredAmt + +this.getObj(77).tiredAmt, 49);
                this.cList('lastNov', +this.getObj(76).lastNov + +this.getObj(77).lastNov, 49);
                this.cList('lastDec', +this.getObj(76).lastDec + +this.getObj(77).lastDec, 49);
                this.cList('jan', +this.getObj(76).jan + +this.getObj(77).jan, 49);
                this.cList('feb', +this.getObj(76).feb + +this.getObj(77).feb, 49);
                this.cList('mar', +this.getObj(76).mar + +this.getObj(77).mar, 49);
                this.cList('apr', +this.getObj(76).apr + +this.getObj(77).apr, 49);
                this.cList('may', +this.getObj(76).may + +this.getObj(77).may, 49);
                this.cList('jun', +this.getObj(76).jun + +this.getObj(77).jun, 49);
                this.cList('jul', +this.getObj(76).jul + +this.getObj(77).jul, 49);
                this.cList('aug', +this.getObj(76).aug + +this.getObj(77).aug, 49);
                this.cList('sep', +this.getObj(76).sep + +this.getObj(77).sep, 49);
                this.cList('oct', +this.getObj(76).oct + +this.getObj(77).oct, 49);
                this.cList('nov', +this.getObj(76).nov + +this.getObj(77).nov, 49);
                this.cList('dec', +this.getObj(76).dec + +this.getObj(77).dec, 49);

                //10.3 项目运维利润
                this.cList('lastNov', +this.getObj(6).lastNov, 50);
                this.cList('lastDec', +this.getObj(6).lastDec, 50);
                this.cList('jan', +this.getObj(6).jan, 50);
                this.cList('mar', +this.getObj(6).mar, 50);
                this.cList('may', +this.getObj(6).may, 50);
                this.cList('jun', +this.getObj(6).jun, 50);
                this.cList('jul', +this.getObj(6).jul, 50);
                this.cList('aug', +this.getObj(6).aug, 50);
                this.cList('sep', +this.getObj(6).sep, 50);
                this.cList('oct', +this.getObj(6).oct, 50);
                this.cList('nov', +this.getObj(6).nov, 50);
                this.cList('dec', +this.getObj(6).dec, 50);

                //10,4资金运营利润 = 资金运营收益
                this.cList('lastNov', +this.getObj(9).lastNov, 51);
                this.cList('lastDec', +this.getObj(9).lastDec, 51);
                this.cList('jan', +this.getObj(9).jan, 51);
                this.cList('feb', +this.getObj(9).feb, 51);
                this.cList('mar', +this.getObj(9).mar, 51);
                this.cList('apr', +this.getObj(9).apr, 51);
                this.cList('may', +this.getObj(9).may, 51);
                this.cList('jun', +this.getObj(9).jun, 51);
                this.cList('jul', +this.getObj(9).jul, 51);
                this.cList('aug', +this.getObj(9).aug, 51);
                this.cList('sep', +this.getObj(9).sep, 51);
                this.cList('oct', +this.getObj(9).oct, 51);
                this.cList('nov', +this.getObj(9).nov, 51);
                this.cList('dec', +this.getObj(9).dec, 51);

                //10.5运维期亏损计提准备金
                this.cList('lastNov', +this.getObj(78).lastNov + +this.getObj(79).lastNov + +this.getObj(80).lastNov, 52);
                this.cList('lastDec', +this.getObj(78).lastDec + +this.getObj(79).lastDec + +this.getObj(80).lastDec, 52);
                this.cList('jan', +this.getObj(78).jan + +this.getObj(79).jan + +this.getObj(80).jan, 52);
                this.cList('feb', +this.getObj(78).feb + +this.getObj(79).feb + +this.getObj(80).feb, 52);
                this.cList('mar', +this.getObj(78).mar + +this.getObj(79).mar + +this.getObj(80).mar, 52);
                this.cList('apr', +this.getObj(78).apr + +this.getObj(79).apr + +this.getObj(80).apr, 52);
                this.cList('may', +this.getObj(78).may + +this.getObj(79).may + +this.getObj(80).may, 52);
                this.cList('jun', +this.getObj(78).jun + +this.getObj(79).jun + +this.getObj(80).jun, 52);
                this.cList('jul', +this.getObj(78).jul + +this.getObj(79).jul + +this.getObj(80).jul, 52);
                this.cList('aug', +this.getObj(78).aug + +this.getObj(79).aug + +this.getObj(80).aug, 52);
                this.cList('sep', +this.getObj(78).sep + +this.getObj(79).sep + +this.getObj(80).sep, 52);
                this.cList('oct', +this.getObj(78).oct + +this.getObj(79).oct + +this.getObj(80).oct, 52);
                this.cList('nov', +this.getObj(78).nov + +this.getObj(79).nov + +this.getObj(80).nov, 52);
                this.cList('dec', +this.getObj(78).dec + +this.getObj(79).dec + +this.getObj(80).dec, 52);

                //10 经营利润 = 建安毛利 + 二三次经营利润 + 项目运维利润 + 资金运营利润 + 运维期亏损计提准备金
                this.cList('lastNov', +this.getObj(48).lastNov + +this.getObj(49).lastNov + +this.getObj(50).lastNov + +this.getObj(51).lastNov + +this.getObj(52).lastNov, 10);
                this.cList('lastDec', +this.getObj(48).lastDec + +this.getObj(49).lastDec + +this.getObj(50).lastDec + +this.getObj(51).lastDec + +this.getObj(52).lastDec, 10);
                this.cList('jan', +this.getObj(48).jan + +this.getObj(49).jan + +this.getObj(50).jan + +this.getObj(51).jan + +this.getObj(52).jan, 10);
                this.cList('feb', +this.getObj(48).feb + +this.getObj(49).feb + +this.getObj(50).feb + +this.getObj(51).feb + +this.getObj(52).feb, 10);
                this.cList('mar', +this.getObj(48).mar + +this.getObj(49).mar + +this.getObj(50).mar + +this.getObj(51).mar + +this.getObj(52).mar, 10);
                this.cList('apr', +this.getObj(48).apr + +this.getObj(49).apr + +this.getObj(50).apr + +this.getObj(51).apr + +this.getObj(52).apr, 10);
                this.cList('may', +this.getObj(48).may + +this.getObj(49).may + +this.getObj(50).may + +this.getObj(51).may + +this.getObj(52).may, 10);
                this.cList('jun', +this.getObj(48).jun + +this.getObj(49).jun + +this.getObj(50).jun + +this.getObj(51).jun + +this.getObj(52).jun, 10);
                this.cList('jul', +this.getObj(48).jul + +this.getObj(49).jul + +this.getObj(50).jul + +this.getObj(51).jul + +this.getObj(52).jul, 10);
                this.cList('aug', +this.getObj(48).aug + +this.getObj(49).aug + +this.getObj(50).aug + +this.getObj(51).aug + +this.getObj(52).aug, 10);
                this.cList('sep', +this.getObj(48).sep + +this.getObj(49).sep + +this.getObj(50).sep + +this.getObj(51).sep + +this.getObj(52).sep, 10);
                this.cList('oct', +this.getObj(48).oct + +this.getObj(49).oct + +this.getObj(50).oct + +this.getObj(51).oct + +this.getObj(52).oct, 10);
                this.cList('nov', +this.getObj(48).nov + +this.getObj(49).nov + +this.getObj(50).nov + +this.getObj(51).nov + +this.getObj(52).nov, 10);
                this.cList('dec', +this.getObj(48).dec + +this.getObj(49).dec + +this.getObj(50).dec + +this.getObj(51).dec + +this.getObj(52).dec, 10);

                //12.3所得税
                this.cList('tiredAmt', (+this.getObj(58).tiredAmt - +this.getObj(59).tiredAmt) * 0.25, 60);
                this.cList('lastNov', (+this.getObj(58).lastNov - +this.getObj(59).lastNov) * 0.25, 60);
                this.cList('lastDec', (+this.getObj(58).lastDec - +this.getObj(59).lastDec) * 0.25, 60);
                this.cList('jan', (+this.getObj(58).jan - +this.getObj(59).jan) * 0.25, 60);
                this.cList('feb', (+this.getObj(58).feb - +this.getObj(59).feb) * 0.25, 60);
                this.cList('mar', (+this.getObj(58).mar - +this.getObj(59).mar) * 0.25, 60);
                this.cList('apr', (+this.getObj(58).apr - +this.getObj(59).apr) * 0.25, 60);
                this.cList('may', (+this.getObj(58).may - +this.getObj(59).may) * 0.25, 60);
                this.cList('jun', (+this.getObj(58).jun - +this.getObj(59).jun) * 0.25, 60);
                this.cList('jul', (+this.getObj(58).jul - +this.getObj(59).jul) * 0.25, 60);
                this.cList('aug', (+this.getObj(58).aug - +this.getObj(59).aug) * 0.25, 60);
                this.cList('sep', (+this.getObj(58).sep - +this.getObj(59).sep) * 0.25, 60);
                this.cList('oct', (+this.getObj(58).oct - +this.getObj(59).oct) * 0.25, 60);
                this.cList('nov', (+this.getObj(58).nov - +this.getObj(59).nov) * 0.25, 60);
                this.cList('dec', (+this.getObj(58).dec - +this.getObj(59).dec) * 0.25, 60);

                //12、净利润 = 利润总额 - 所得税
                this.cList('tiredAmt', +this.getObj(58).tiredAmt - +this.getObj(60).tiredAmt, 12);
                this.cList('lastNov', +this.getObj(58).lastNov - +this.getObj(60).lastNov, 12);
                this.cList('lastDec', +this.getObj(58).lastDec - +this.getObj(60).lastDec, 12);
                this.cList('jan', +this.getObj(58).jan - +this.getObj(60).jan, 12);
                this.cList('feb', +this.getObj(58).feb - +this.getObj(60).feb, 12);
                this.cList('mar', +this.getObj(58).mar - +this.getObj(60).mar, 12);
                this.cList('apr', +this.getObj(58).apr - +this.getObj(60).apr, 12);
                this.cList('may', +this.getObj(58).may - +this.getObj(60).may, 12);
                this.cList('jun', +this.getObj(58).jun - +this.getObj(60).jun, 12);
                this.cList('jul', +this.getObj(58).jul - +this.getObj(60).jul, 12);
                this.cList('aug', +this.getObj(58).aug - +this.getObj(60).aug, 12);
                this.cList('sep', +this.getObj(58).sep - +this.getObj(60).sep, 12);
                this.cList('oct', +this.getObj(58).oct - +this.getObj(60).oct, 12);
                this.cList('nov', +this.getObj(58).nov - +this.getObj(60).nov, 12);
                this.cList('dec', +this.getObj(58).dec - +this.getObj(60).dec, 12);


                //13.1投资年金回款 = 投资回购计划
                this.cList('jan', +this.getObj(7).jan, 61);
                this.cList('feb', +this.getObj(7).feb, 61);
                this.cList('mar', +this.getObj(7).mar, 61);
                this.cList('apr', +this.getObj(7).apr, 61);
                this.cList('may', +this.getObj(7).may, 61);
                this.cList('jun', +this.getObj(7).jun, 61);
                this.cList('jul', +this.getObj(7).jul, 61);
                this.cList('aug', +this.getObj(7).aug, 61);
                this.cList('sep', +this.getObj(7).sep, 61);
                this.cList('oct', +this.getObj(7).oct, 61);
                this.cList('nov', +this.getObj(7).nov, 61);
                this.cList('dec', +this.getObj(7).dec, 61);

                //13.2运营收入回款 = 项目运维收入
                this.cList('jan', +this.getObj(39).jan, 62);
                this.cList('feb', +this.getObj(39).feb, 62);
                this.cList('mar', +this.getObj(39).mar, 62);
                this.cList('apr', +this.getObj(39).apr, 62);
                this.cList('may', +this.getObj(39).may, 62);
                this.cList('jun', +this.getObj(39).jun, 62);
                this.cList('jul', +this.getObj(39).jul, 62);
                this.cList('aug', +this.getObj(39).aug, 62);
                this.cList('sep', +this.getObj(39).sep, 62);
                this.cList('oct', +this.getObj(39).oct, 62);
                this.cList('nov', +this.getObj(39).nov, 62);
                this.cList('dec', +this.getObj(39).dec, 62);

                //13.3专项基金回款 = 项目专项基金
                this.cList('jan', +this.getObj(33).jan, 63);
                this.cList('feb', +this.getObj(33).feb, 63);
                this.cList('mar', +this.getObj(33).mar, 63);
                this.cList('apr', +this.getObj(33).apr, 63);
                this.cList('may', +this.getObj(33).may, 63);
                this.cList('jun', +this.getObj(33).jun, 63);
                this.cList('jul', +this.getObj(33).jul, 63);
                this.cList('aug', +this.getObj(33).aug, 63);
                this.cList('sep', +this.getObj(33).sep, 63);
                this.cList('oct', +this.getObj(33).oct, 63);
                this.cList('nov', +this.getObj(33).nov, 63);
                this.cList('dec', +this.getObj(33).dec, 63);

                //13.4政府补贴回款 = 政府补贴
                this.cList('jan', +this.getObj(34).jan, 64);
                this.cList('feb', +this.getObj(34).feb, 64);
                this.cList('mar', +this.getObj(34).mar, 64);
                this.cList('apr', +this.getObj(34).apr, 64);
                this.cList('may', +this.getObj(34).may, 64);
                this.cList('jun', +this.getObj(34).jun, 64);
                this.cList('jul', +this.getObj(34).jul, 64);
                this.cList('aug', +this.getObj(34).aug, 64);
                this.cList('sep', +this.getObj(34).sep, 64);
                this.cList('oct', +this.getObj(34).oct, 64);
                this.cList('nov', +this.getObj(34).nov, 64);
                this.cList('dec', +this.getObj(34).dec, 64);

                // 投资性现金流入
                this.cList('tiredAmt', +this.getObj(7).tiredAmt, 68);
                this.cList('lastNov', +this.getObj(7).lastNov, 68);
                this.cList('lastDec', +this.getObj(7).lastDec, 68);
                this.cList('jan', +this.getObj(7).jan, 68);
                this.cList('feb', +this.getObj(7).feb, 68);
                this.cList('mar', +this.getObj(7).mar, 68);
                this.cList('apr', +this.getObj(7).apr, 68);
                this.cList('may', +this.getObj(7).may, 68);
                this.cList('jun', +this.getObj(7).jun, 68);
                this.cList('jul', +this.getObj(7).jul, 68);
                this.cList('aug', +this.getObj(7).aug, 68);
                this.cList('sep', +this.getObj(7).sep, 68);
                this.cList('oct', +this.getObj(7).oct, 68);
                this.cList('nov', +this.getObj(7).nov, 68);
                this.cList('dec', +this.getObj(7).dec, 68);

                //投资性现金流出
                this.cList('tiredAmt', +this.getObj(3).tiredAmt, 69);
                this.cList('lastNov', +this.getObj(3).lastNov, 69);
                this.cList('lastDec', +this.getObj(3).lastDec, 69);
                this.cList('jan', +this.getObj(3).jan, 69);
                this.cList('feb', +this.getObj(3).feb, 69);
                this.cList('mar', +this.getObj(3).mar, 69);
                this.cList('apr', +this.getObj(3).apr, 69);
                this.cList('may', +this.getObj(3).may, 69);
                this.cList('jun', +this.getObj(3).jun, 69);
                this.cList('jul', +this.getObj(3).jul, 69);
                this.cList('aug', +this.getObj(3).aug, 69);
                this.cList('sep', +this.getObj(3).sep, 69);
                this.cList('oct', +this.getObj(3).oct, 69);
                this.cList('nov', +this.getObj(3).nov, 69);
                this.cList('dec', +this.getObj(3).dec, 69);

                //投资性净现金流
                this.cList('tiredAmt', +this.getObj(68).tiredAmt - +this.getObj(69).tiredAmt, 67);
                this.cList('lastNov', +this.getObj(68).lastNov - +this.getObj(69).lastNov, 67);
                this.cList('lastDec', +this.getObj(68).lastDec - +this.getObj(69).lastDec, 67);
                this.cList('jan', +this.getObj(68).jan - +this.getObj(69).jan, 67);
                this.cList('feb', +this.getObj(68).feb - +this.getObj(69).feb, 67);
                this.cList('mar', +this.getObj(68).mar - +this.getObj(69).mar, 67);
                this.cList('apr', +this.getObj(68).apr - +this.getObj(69).apr, 67);
                this.cList('may', +this.getObj(68).may - +this.getObj(69).may, 67);
                this.cList('jun', +this.getObj(68).jun - +this.getObj(69).jun, 67);
                this.cList('jul', +this.getObj(68).jul - +this.getObj(69).jul, 67);
                this.cList('aug', +this.getObj(68).aug - +this.getObj(69).aug, 67);
                this.cList('sep', +this.getObj(68).sep - +this.getObj(69).sep, 67);
                this.cList('oct', +this.getObj(68).oct - +this.getObj(69).oct, 67);
                this.cList('nov', +this.getObj(68).nov - +this.getObj(69).nov, 67);
                this.cList('dec', +this.getObj(68).dec - +this.getObj(69).dec, 67);

                //经营性现金流入
                this.cList('tiredAmt', +this.getObj(39).tiredAmt, 71);
                this.cList('lastNov', +this.getObj(39).lastNov, 71);
                this.cList('lastDec', +this.getObj(39).lastDec, 71);
                this.cList('jan', +this.getObj(39).jan, 71);
                this.cList('feb', +this.getObj(39).feb, 71);
                this.cList('mar', +this.getObj(39).mar, 71);
                this.cList('apr', +this.getObj(39).apr, 71);
                this.cList('may', +this.getObj(39).may, 71);
                this.cList('jun', +this.getObj(39).jun, 71);
                this.cList('jul', +this.getObj(39).jul, 71);
                this.cList('aug', +this.getObj(39).aug, 71);
                this.cList('sep', +this.getObj(39).sep, 71);
                this.cList('oct', +this.getObj(39).oct, 71);
                this.cList('nov', +this.getObj(39).nov, 71);
                this.cList('dec', +this.getObj(39).dec, 71);

                // 经营性现金流出
                this.cList('tiredAmt', +this.getObj(38).tiredAmt + +this.getObj(11).tiredAmt + +this.getObj(59).tiredAmt, 72);
                this.cList('lastNov', +this.getObj(38).lastNov + +this.getObj(11).lastNov + +this.getObj(59).lastNov, 72);
                this.cList('lastDec', +this.getObj(38).lastDec + +this.getObj(11).lastDec + +this.getObj(59).lastDec, 72);
                this.cList('jan', +this.getObj(38).jan + +this.getObj(11).jan + +this.getObj(59).jan, 72);
                this.cList('feb', +this.getObj(38).feb + +this.getObj(11).feb + +this.getObj(59).feb, 72);
                this.cList('mar', +this.getObj(38).mar + +this.getObj(11).mar + +this.getObj(59).mar, 72);
                this.cList('apr', +this.getObj(38).apr + +this.getObj(11).apr + +this.getObj(59).apr, 72);
                this.cList('may', +this.getObj(38).may + +this.getObj(11).may + +this.getObj(59).may, 72);
                this.cList('jun', +this.getObj(38).jun + +this.getObj(11).jun + +this.getObj(59).jun, 72);
                this.cList('jul', +this.getObj(38).jul + +this.getObj(11).jul + +this.getObj(59).jul, 72);
                this.cList('aug', +this.getObj(38).aug + +this.getObj(11).aug + +this.getObj(59).aug, 72);
                this.cList('sep', +this.getObj(38).sep + +this.getObj(11).sep + +this.getObj(59).sep, 72);
                this.cList('oct', +this.getObj(38).oct + +this.getObj(11).oct + +this.getObj(59).oct, 72);
                this.cList('nov', +this.getObj(38).nov + +this.getObj(11).nov + +this.getObj(59).nov, 72);
                this.cList('dec', +this.getObj(38).dec + +this.getObj(11).dec + +this.getObj(59).dec, 72);

                //经营性净现金流
                this.cList('tiredAmt', +this.getObj(71).tiredAmt - +this.getObj(72).tiredAmt, 70);
                this.cList('lastNov', +this.getObj(71).lastNov - +this.getObj(72).lastNov, 70);
                this.cList('lastDec', +this.getObj(71).lastDec - +this.getObj(72).lastDec, 70);
                this.cList('jan', +this.getObj(71).jan - +this.getObj(72).jan, 70);
                this.cList('feb', +this.getObj(71).feb - +this.getObj(72).feb, 70);
                this.cList('mar', +this.getObj(71).mar - +this.getObj(72).mar, 70);
                this.cList('apr', +this.getObj(71).apr - +this.getObj(72).apr, 70);
                this.cList('may', +this.getObj(71).may - +this.getObj(72).may, 70);
                this.cList('jun', +this.getObj(71).jun - +this.getObj(72).jun, 70);
                this.cList('jul', +this.getObj(71).jul - +this.getObj(72).jul, 70);
                this.cList('aug', +this.getObj(71).aug - +this.getObj(72).aug, 70);
                this.cList('sep', +this.getObj(71).sep - +this.getObj(72).sep, 70);
                this.cList('oct', +this.getObj(71).oct - +this.getObj(72).oct, 70);
                this.cList('nov', +this.getObj(71).nov - +this.getObj(72).nov, 70);
                this.cList('dec', +this.getObj(71).dec - +this.getObj(72).dec, 70);


                //融资性现金流入
                this.cList('tiredAmt', +this.getObj(28).tiredAmt + +this.getObj(29).tiredAmt + +this.getObj(32).tiredAmt + +this.getObj(33).tiredAmt + +this.getObj(34).tiredAmt + +this.getObj(35).tiredAmt + +this.getObj(36).tiredAmt, 74);
                this.cList('lastNov', +this.getObj(28).lastNov + +this.getObj(29).lastNov + +this.getObj(32).lastNov + +this.getObj(33).lastNov + +this.getObj(34).lastNov + +this.getObj(35).lastNov + +this.getObj(36).lastNov, 74);
                this.cList('lastDec', +this.getObj(28).lastDec + +this.getObj(29).lastDec + +this.getObj(32).lastDec + +this.getObj(33).lastDec + +this.getObj(34).lastDec + +this.getObj(35).lastDec + +this.getObj(36).lastDec, 74);
                this.cList('jan', +this.getObj(28).jan + +this.getObj(29).jan + +this.getObj(32).jan + +this.getObj(33).jan + +this.getObj(34).jan + +this.getObj(35).jan + +this.getObj(36).jan, 74);
                this.cList('feb', +this.getObj(28).feb + +this.getObj(29).feb + +this.getObj(32).feb + +this.getObj(33).feb + +this.getObj(34).feb + +this.getObj(35).feb + +this.getObj(36).feb, 74);
                this.cList('mar', +this.getObj(28).mar + +this.getObj(29).mar + +this.getObj(32).mar + +this.getObj(33).mar + +this.getObj(34).mar + +this.getObj(35).mar + +this.getObj(36).mar, 74);
                this.cList('apr', +this.getObj(28).apr + +this.getObj(29).apr + +this.getObj(32).apr + +this.getObj(33).apr + +this.getObj(34).apr + +this.getObj(35).apr + +this.getObj(36).apr, 74);
                this.cList('may', +this.getObj(28).may + +this.getObj(29).may + +this.getObj(32).may + +this.getObj(33).may + +this.getObj(34).may + +this.getObj(35).may + +this.getObj(36).may, 74);
                this.cList('jun', +this.getObj(28).jun + +this.getObj(29).jun + +this.getObj(32).jun + +this.getObj(33).jun + +this.getObj(34).jun + +this.getObj(35).jun + +this.getObj(36).jun, 74);
                this.cList('jul', +this.getObj(28).jul + +this.getObj(29).jul + +this.getObj(32).jul + +this.getObj(33).jul + +this.getObj(34).jul + +this.getObj(35).jul + +this.getObj(36).jul, 74);
                this.cList('aug', +this.getObj(28).aug + +this.getObj(29).aug + +this.getObj(32).aug + +this.getObj(33).aug + +this.getObj(34).aug + +this.getObj(35).aug + +this.getObj(36).aug, 74);
                this.cList('sep', +this.getObj(28).sep + +this.getObj(29).sep + +this.getObj(32).sep + +this.getObj(33).sep + +this.getObj(34).sep + +this.getObj(35).sep + +this.getObj(36).sep, 74);
                this.cList('oct', +this.getObj(28).oct + +this.getObj(29).oct + +this.getObj(32).oct + +this.getObj(33).oct + +this.getObj(34).oct + +this.getObj(35).oct + +this.getObj(36).oct, 74);
                this.cList('nov', +this.getObj(28).nov + +this.getObj(29).nov + +this.getObj(32).nov + +this.getObj(33).nov + +this.getObj(34).nov + +this.getObj(35).nov + +this.getObj(36).nov, 74);
                this.cList('dec', +this.getObj(28).dec + +this.getObj(29).dec + +this.getObj(32).dec + +this.getObj(33).dec + +this.getObj(34).dec + +this.getObj(35).dec + +this.getObj(36).dec, 74);

                //融资性现金流出
                this.cList('tiredAmt', +this.getObj(30).tiredAmt + +this.getObj(31).tiredAmt + +this.getObj(37).tiredAmt, 75);
                this.cList('lastNov', +this.getObj(30).lastNov + +this.getObj(31).lastNov + +this.getObj(37).lastNov, 75);
                this.cList('lastDec', +this.getObj(30).lastDec + +this.getObj(31).lastDec + +this.getObj(37).lastDec, 75);
                this.cList('jan', +this.getObj(30).jan + +this.getObj(31).jan + +this.getObj(37).jan, 75);
                this.cList('feb', +this.getObj(30).feb + +this.getObj(31).feb + +this.getObj(37).feb, 75);
                this.cList('mar', +this.getObj(30).mar + +this.getObj(31).mar + +this.getObj(37).mar, 75);
                this.cList('apr', +this.getObj(30).apr + +this.getObj(31).apr + +this.getObj(37).apr, 75);
                this.cList('may', +this.getObj(30).may + +this.getObj(31).may + +this.getObj(37).may, 75);
                this.cList('jun', +this.getObj(30).jun + +this.getObj(31).jun + +this.getObj(37).jun, 75);
                this.cList('jul', +this.getObj(30).jul + +this.getObj(31).jul + +this.getObj(37).jul, 75);
                this.cList('aug', +this.getObj(30).aug + +this.getObj(31).aug + +this.getObj(37).aug, 75);
                this.cList('sep', +this.getObj(30).sep + +this.getObj(31).sep + +this.getObj(37).sep, 75);
                this.cList('oct', +this.getObj(30).oct + +this.getObj(31).oct + +this.getObj(37).oct, 75);
                this.cList('nov', +this.getObj(30).nov + +this.getObj(31).nov + +this.getObj(37).nov, 75);
                this.cList('dec', +this.getObj(30).dec + +this.getObj(31).dec + +this.getObj(37).dec, 75);

                // 融资性净现金流
                this.cList('tiredAmt', +this.getObj(74).tiredAmt - +this.getObj(75).tiredAmt, 73);
                this.cList('lastNov', +this.getObj(74).lastNov - +this.getObj(75).lastNov, 73);
                this.cList('lastDec', +this.getObj(74).lastDec - +this.getObj(75).lastDec, 73);
                this.cList('jan', +this.getObj(74).jan - +this.getObj(75).jan, 73);
                this.cList('feb', +this.getObj(74).feb - +this.getObj(75).feb, 73);
                this.cList('mar', +this.getObj(74).mar - +this.getObj(75).mar, 73);
                this.cList('apr', +this.getObj(74).apr - +this.getObj(75).apr, 73);
                this.cList('may', +this.getObj(74).may - +this.getObj(75).may, 73);
                this.cList('jun', +this.getObj(74).jun - +this.getObj(75).jun, 73);
                this.cList('jul', +this.getObj(74).jul - +this.getObj(75).jul, 73);
                this.cList('aug', +this.getObj(74).aug - +this.getObj(75).aug, 73);
                this.cList('sep', +this.getObj(74).sep - +this.getObj(75).sep, 73);
                this.cList('oct', +this.getObj(74).oct - +this.getObj(75).oct, 73);
                this.cList('nov', +this.getObj(74).nov - +this.getObj(75).nov, 73);
                this.cList('dec', +this.getObj(74).dec - +this.getObj(75).dec, 73);

                // 当期现金净流量
                this.cList('tiredAmt', +this.getObj(67).tiredAmt + +this.getObj(70).tiredAmt + +this.getObj(73).tiredAmt, 65);
                this.cList('lastNov', +this.getObj(67).lastNov + +this.getObj(70).lastNov + +this.getObj(73).lastNov, 65);
                this.cList('lastDec', +this.getObj(67).lastDec + +this.getObj(70).lastDec + +this.getObj(73).lastDec, 65);
                this.cList('jan', +this.getObj(67).jan + +this.getObj(70).dec + +this.getObj(73).jan, 65);
                this.cList('feb', +this.getObj(67).feb + +this.getObj(70).feb + +this.getObj(73).feb, 65);
                this.cList('mar', +this.getObj(67).mar + +this.getObj(70).mar + +this.getObj(73).mar, 65);
                this.cList('apr', +this.getObj(67).apr + +this.getObj(70).apr + +this.getObj(73).apr, 65);
                this.cList('may', +this.getObj(67).may + +this.getObj(70).may + +this.getObj(73).may, 65);
                this.cList('jun', +this.getObj(67).jun + +this.getObj(70).jun + +this.getObj(73).jun, 65);
                this.cList('jul', +this.getObj(67).jul + +this.getObj(70).jul + +this.getObj(73).jul, 65);
                this.cList('aug', +this.getObj(67).aug + +this.getObj(70).aug + +this.getObj(73).aug, 65);
                this.cList('sep', +this.getObj(67).sep + +this.getObj(70).sep + +this.getObj(73).sep, 65);
                this.cList('oct', +this.getObj(67).oct + +this.getObj(70).oct + +this.getObj(73).oct, 65);
                this.cList('nov', +this.getObj(67).nov + +this.getObj(70).nov + +this.getObj(73).nov, 65);
                this.cList('dec', +this.getObj(67).dec + +this.getObj(70).dec + +this.getObj(73).dec, 65);

                //累计现金净流量
                this.cList('lastNov', +this.getObj(66).tiredAmt + +this.getObj(65).lastNov, 66);
                this.cList('lastDec', +this.getObj(66).lastNov + +this.getObj(65).lastDec, 66);
                this.cList('jan', +this.info.yearTermCash + +this.getObj(65).jan, 66);
                this.cList('feb', +this.getObj(66).jan + +this.getObj(65).feb, 66);
                this.cList('mar', +this.getObj(66).feb + +this.getObj(65).mar, 66);
                this.cList('apr', +this.getObj(66).mar + +this.getObj(65).apr, 66);
                this.cList('may', +this.getObj(66).apr + +this.getObj(65).may, 66);
                this.cList('jun', +this.getObj(66).may + +this.getObj(65).jun, 66);
                this.cList('jul', +this.getObj(66).jun + +this.getObj(65).jul, 66);
                this.cList('aug', +this.getObj(66).jul + +this.getObj(65).aug, 66);
                this.cList('sep', +this.getObj(66).aug + +this.getObj(65).sep, 66);
                this.cList('oct', +this.getObj(66).sep + +this.getObj(65).oct, 66);
                this.cList('nov', +this.getObj(66).oct + +this.getObj(65).nov, 66);
                this.cList('dec', +this.getObj(66).nov + +this.getObj(65).dec, 66);
                this.cList('yearTotal', +this.getObj(66).dec, 66);

                //9.3资金沉淀利息收益 = 累计现金净流量 * 0.09 / 12
                this.cList('lastNov', +this.getObj(66).lastNov * 0.09 / 12, 47);
                this.cList('lastDec', +this.getObj(66).lastDec * 0.09 / 12, 47);
                //计算每一列的合计
                this.detailList.map(el => {
                    if (el.typeId != 4 && el.typeId != 5 && el.typeId != 6 && el.typeId != 10 && el.typeId != 12 && el.typeId != 14) {
                        if (el.parentTypeId == 0) {
                            el.jan = 0;
                            el.feb = 0;
                            el.mar = 0;
                            el.apr = 0;
                            el.may = 0;
                            el.jun = 0;
                            el.jul = 0;
                            el.aug = 0;
                            el.sep = 0;
                            el.oct = 0;
                            el.nov = 0;
                            el.dec = 0;
                            el.lastNov = 0;
                            el.lastDec = 0;
                            el.tiredAmt = 0;
                            this.detailList.map(el1 => {
                                if (el.typeId == el1.parentTypeId) {
                                    el.jan += +el1.jan;
                                    el.feb += +el1.feb;
                                    el.mar += +el1.mar;
                                    el.apr += +el1.apr;
                                    el.may += +el1.may;
                                    el.jun += +el1.jun;
                                    el.jul += +el1.jul;
                                    el.aug += +el1.aug;
                                    el.sep += +el1.sep;
                                    el.oct += +el1.oct;
                                    el.nov += +el1.nov;
                                    el.dec += +el1.dec;
                                    el.lastNov += +el1.lastNov;
                                    el.lastDec += +el1.lastDec;
                                    el.tiredAmt += +el1.tiredAmt;
                                }
                            })
                            el.jan = el.jan.toFixed(3);
                            el.feb = el.feb.toFixed(3);
                            el.mar = el.mar.toFixed(3);
                            el.apr = el.apr.toFixed(3);
                            el.may = el.may.toFixed(3);
                            el.jun = el.jun.toFixed(3);
                            el.jul = el.jul.toFixed(3);
                            el.aug = el.aug.toFixed(3);
                            el.sep = el.sep.toFixed(3);
                            el.oct = el.oct.toFixed(3);
                            el.nov = el.nov.toFixed(3);
                            el.dec = el.dec.toFixed(3);
                            el.lastNov = el.lastNov.toFixed(3);
                            el.lastDec = el.lastDec.toFixed(3);
                            el.tiredAmt = el.tiredAmt.toFixed(3);
                        }
                    }
                })

                //计算每一行的合计
                this.detailList.map(el => {
                    el.yearTotal = +el.jan + +el.feb + +el.mar + +el.apr + +el.may + +el.jun + +el.jul + +el.aug + +el.sep + +el.oct + +el.nov + +el.dec
                    el.yearTotal = el.yearTotal.toFixed(3);
                })

            },
            queryDetailByWhere() {
                zAjax('/budget/queryDetailByWhere', {proCode: this.proCode}).then(res => {
                    if (res.code == 0) {
                        this.detailList = res.entity.detailList;
                        this.info = res.entity.info ? res.entity.info : {};
                        let arr = [];
                        let infoList = res.entity.infoList;
                        for (let i = 0; i < infoList.length; i += 2) {
                            arr.push(infoList.slice(i, i + 2));
                        }
                        this.infoList = arr;
                        this.sum();
                    }
                })
            },
            error(text) {
                this.$message({
                    message: text,
                    type: 'warning'
                });
            },

            queryProcessList() {
                let that = this;
                zAjax('/fiaHistoryProcess/processList', {processId: that.processId}).then(res => {
                    console.log(res)
                    if (res.success) {
                        that.procNodeList = res.entity.procNodeList;
                        that.tempNodeList = res.entity.tempNodeList;
                    }
                })
            },
            //保存
            save(type) {
                let that = this;
                let obj = {
                    info: that.info,
                    detailList: that.detailList,
                };
                obj.info.proCode = this.proCode;
                obj.info.belongDate = this.belongDate;
                let str = JSON.stringify(obj).replace(/\"/g, '\\"');
                zAjax('/budget/edit', {bodyStr: str, submitType: type,}).then(res => {
                    if (res.success) {
                        that.$message({message: '保存成功', type: 'success'});
                    } else {
                        that.$message.error(res.msg);
                    }

                })
            },
            audit(status) {
                let that = this;
                $.ajax({
                    type: 'post',
                    url: basePath + '/budget/auditProcess',  //请求数据接口
                    async: false,
                    data: {
                        id: that.id,
                        processId: that.processId,
                        status: status,
                        auditMsg: that.auditMsg,
                    },
                    success: function (result) {
                        if (result.success) {
                            that.$message({
                                message: '操作成功',
                                type: 'success'
                            });
                            setTimeout(function () {
                                // 刷新首页
                                let index = window.parent.layui.admin.tabsPage.index
                                if (index == null) {
                                    window.close();
                                } else {
                                    var iframe = window.parent.layui.admin.tabsBody((index - 1)).find(".layadmin-iframe");
                                    iframe[0].contentWindow.location.reload();
                                    top.layui.admin.closeThisTabs(); // 关闭当前标签页
                                }
                            }, 3000);
                        } else {
                            that.$message.error('保存失败');
                        }
                    }
                });
            }
        }
    })
</script>
</body>
</html>